Emmanuele Bassi [Tue, 2 Dec 2014 19:21:18 +0000 (19:21 +0000)]
docs: Add a README to the examples directory
https://bugzilla.gnome.org/show_bug.cgi?id=741041
Emmanuele Bassi [Tue, 2 Dec 2014 19:15:03 +0000 (19:15 +0000)]
Add standalone Makefile for the examples
We want to allow people to build the examples easily, without
necessarily requiring them to build the whole of GTK+.
https://bugzilla.gnome.org/show_bug.cgi?id=741041
Carlos Garnacho [Tue, 2 Dec 2014 14:44:04 +0000 (15:44 +0100)]
popover: make smarter wrt previous focus widget lifetime
If the previous focus widget is unmapped (eg. hidden, scheduled for
destruction, etc), make the popover forget about it and grant focus
back to the window itself.
Marco Trevisan (Treviño) [Tue, 2 Dec 2014 13:59:47 +0000 (14:59 +0100)]
gdkgl: pass the correct number of quads to gdk_gl_texture_quads
And call it only if that's the case
Matthias Clasen [Tue, 2 Dec 2014 13:29:24 +0000 (08:29 -0500)]
css: Avoid excessive shadow rendering
The shadow rendering code had code to exit early if we determine
that the shadow is entirely clipped away. Unfortunately, the check
based on cairo clip extents fails for any clip regions that are
more complicated than axis-aligned rectangles, and we are using
a hollow rounded rectangle here. So, instead, do the check manually,
using the just-introduced API in GtkRoundedBox.
Matthias Clasen [Tue, 2 Dec 2014 13:26:36 +0000 (08:26 -0500)]
Add clipping apis to GtkRoundedBox
This adds two functions for checking whether an axis-aligned
rectangle is completely outside or inside of a rounded box.
These are not trying to be exact, but fast.
Jasper St. Pierre [Tue, 2 Dec 2014 02:01:18 +0000 (18:01 -0800)]
gtkwidget: Fix a typo preventing the CSD input shape from applying
We were setting "csd-shade" but reading from "csd-region".
Chun-wei Fan [Tue, 2 Dec 2014 01:26:35 +0000 (09:26 +0800)]
Visual Studio Build: Update GTK DLL Build Flags
As the print preview command is moved into the sources, don't define it in
the preprocessor definitions. However, define the
GTK_PRINT_BACKEND_ENABLE_UNSUPPORTED in the preprocessor definitions, to
make the build in-line with the autotools builds.
Matias De Lellis [Mon, 1 Dec 2014 20:56:05 +0000 (14:56 -0600)]
GtkPlacesSidebar: Fix Home and Desktop on Windows.
We were concatenating "file://" to the result of g_get_user_special_dir() to build
a URI, but this is not enough on Windows. Use g_filename_to_uri() instead.
See https://bugzilla.gnome.org/show_bug.cgi?id=739453
Jakub Steiner [Mon, 1 Dec 2014 18:06:02 +0000 (19:06 +0100)]
HC: clean up borders for buttons & entries
https://bugzilla.gnome.org/show_bug.cgi?id=740860
Jakub Steiner [Mon, 1 Dec 2014 16:45:26 +0000 (17:45 +0100)]
HC: vertical linked buttons,entries & combos
https://bugzilla.gnome.org/show_bug.cgi?id=740860
Jakub Steiner [Mon, 1 Dec 2014 16:26:11 +0000 (17:26 +0100)]
HC: wide separator styling
https://bugzilla.gnome.org/show_bug.cgi?id=740862
Jakub Steiner [Mon, 1 Dec 2014 14:39:19 +0000 (15:39 +0100)]
HC theme: more contrasty separators
https://bugzilla.gnome.org/show_bug.cgi?id=740863
Jakub Steiner [Mon, 1 Dec 2014 11:33:23 +0000 (12:33 +0100)]
HC theme: implement scroll overshoot
https://bugzilla.gnome.org/show_bug.cgi?id=740876
Rui Matos [Mon, 1 Dec 2014 17:24:27 +0000 (18:24 +0100)]
Drop remaining traces of GTK_UPDATE_ICON_CACHE build variable
Commit
655c75cab791ea965e705e1b8518e6008d3a755f removed the need for
this variable but left a couple of uses in. Drop them.
Marco Trevisan (Treviño) [Mon, 1 Dec 2014 17:05:30 +0000 (18:05 +0100)]
mir: don't initialize the display if the required pixel formats aren't available
Matthias Clasen [Mon, 1 Dec 2014 15:03:33 +0000 (10:03 -0500)]
Update release notes
Mention that --enable-gtk2-dependency is gone.
Benjamin Otte [Mon, 1 Dec 2014 14:38:26 +0000 (15:38 +0100)]
inspector: Properly update flashing hilight
Previously, the inspector would not change the hilight while the
previous hilight was still flashing.
This is inconvenient while arrowing through the object selection
treeview though where you want the currently selected row to hilight
when arrowing quickly.
Marek Kasik [Fri, 28 Nov 2014 14:25:42 +0000 (15:25 +0100)]
printing: Don't crop dimensions of layout preview
Enlarge area for drawing of layout preview in the print dialog
so that it can embody landscape preview with dimensions.
https://bugzilla.gnome.org/show_bug.cgi?id=730232
Lapo Calamandrei [Mon, 1 Dec 2014 09:14:47 +0000 (10:14 +0100)]
Adwaita: scss cosmetic fixes
Lapo Calamandrei [Mon, 1 Dec 2014 09:05:42 +0000 (10:05 +0100)]
Adwaita: GtkTreeView tree lines fix
See https://bugzilla.gnome.org/show_bug.cgi?id=740904 for details.
Matthias Clasen [Mon, 1 Dec 2014 04:43:07 +0000 (23:43 -0500)]
Move print preview command to gtksettings.c
Having this in the source seems more appropriate.
Matthias Clasen [Mon, 1 Dec 2014 04:23:31 +0000 (23:23 -0500)]
Move print backend list to configure.ac
We already juggle the print backends here, might as well
produce the list.
Matthias Clasen [Mon, 1 Dec 2014 04:01:13 +0000 (23:01 -0500)]
Rearrange Makefile some more
Move the introspection parts all together, drop several unused
variables and targets.
Matthias Clasen [Mon, 1 Dec 2014 03:16:42 +0000 (22:16 -0500)]
Drop a few more leftovers
The GTK_FILE_SYSTEM_ENABLE_UNSUPPORTED define is not used anymore,
and we don't install a gtk.css file for Raleigh, so no need to
uninstall one either.
Matthias Clasen [Mon, 1 Dec 2014 02:49:36 +0000 (21:49 -0500)]
Drop gtk-update-icon-cache complications
gtk-update-icon-cache is no longer used at build time, so a lot
of the complicated machinery we have around that (conditional
build, cross build, etc) are no longer required.
Chun-wei Fan [Mon, 1 Dec 2014 04:06:28 +0000 (12:06 +0800)]
MSVC Builds: Finish Removal of the gtk-inspector Projects
The files for build of GtkInspector have been intergrated into the build of
the main GTK+ DLL, and the Visual Studio project templates for those have
been removed as well. Make that removal complete by removing from the
solution files references to it and make the 'gtk' project not to depend on
the gtk-inspector project.
Benjamin Otte [Mon, 1 Dec 2014 03:04:08 +0000 (04:04 +0100)]
testsuite: Fix test that was committed in a broken state
1) Use font-size instead of color
This makes it easier to compare reference and test because the values
don't change.
2) Actually sort the reference properly
This unbreaks the test.
Matthias Clasen [Mon, 1 Dec 2014 01:53:07 +0000 (20:53 -0500)]
Fix distcheck
Using an absolute path with subdir-objects failed in distcheck.
Matthias Clasen [Mon, 1 Dec 2014 00:59:10 +0000 (19:59 -0500)]
Fix ChangeLog generation
missing is no longer in the toplevel directory.
Also, clean up some file lists.
Matthias Clasen [Mon, 1 Dec 2014 00:58:34 +0000 (19:58 -0500)]
Quiet a rule
Matthias Clasen [Mon, 1 Dec 2014 00:58:08 +0000 (19:58 -0500)]
Drop an unused function
Matthias Clasen [Mon, 1 Dec 2014 00:24:07 +0000 (19:24 -0500)]
Generate README and INSTALL from configure
Matthias Clasen [Mon, 1 Dec 2014 00:23:24 +0000 (19:23 -0500)]
Cosmetic formatting fixes
Matthias Clasen [Mon, 1 Dec 2014 00:22:51 +0000 (19:22 -0500)]
Add missing docs
Document GtkSwitch::state_set.
Matthias Clasen [Mon, 1 Dec 2014 00:22:00 +0000 (19:22 -0500)]
Use subdir-objects for docs/tools
Matthias Clasen [Mon, 1 Dec 2014 00:07:52 +0000 (19:07 -0500)]
Cosmetic fixes
Matthias Clasen [Mon, 1 Dec 2014 00:05:09 +0000 (19:05 -0500)]
Drop vs build stuff for inspector
Now that the inspector sources are built as part of gtk/, this should
no longer be needed.
Matthias Clasen [Sun, 30 Nov 2014 22:25:43 +0000 (17:25 -0500)]
Don't use escapes in echo strings
This forces us to fight with echo non-portability. Instead,
just use ' instead of \".
Matthias Clasen [Sun, 30 Nov 2014 21:57:22 +0000 (16:57 -0500)]
quartz: Copy annotations
Better than juggling introspection sources in the Makefile.
Matthias Clasen [Sun, 30 Nov 2014 22:18:31 +0000 (17:18 -0500)]
Quiet some make rules
Matthias Clasen [Sun, 30 Nov 2014 20:33:19 +0000 (15:33 -0500)]
Use subdir-objects in gtk/
Matthias Clasen [Sun, 30 Nov 2014 20:59:53 +0000 (15:59 -0500)]
inspector: Build nonrecursively
Matthias Clasen [Sun, 30 Nov 2014 20:30:48 +0000 (15:30 -0500)]
Split subdirectory file lists off
This moves a little closer to a proper nonrecursive setup, and
makes the gtk Makefile.am less monstrous.
Matthias Clasen [Sun, 30 Nov 2014 20:15:59 +0000 (15:15 -0500)]
List formatting cleanup
Always put sublists first.
Matthias Clasen [Sun, 30 Nov 2014 20:13:45 +0000 (15:13 -0500)]
Drop a nonexisting variable
Matthias Clasen [Sun, 30 Nov 2014 20:13:13 +0000 (15:13 -0500)]
Drop redundant include
Matthias Clasen [Sun, 30 Nov 2014 19:59:18 +0000 (14:59 -0500)]
Drop an unused variable
This is another leftover from when we were doing export checks.
Matthias Clasen [Sun, 30 Nov 2014 19:50:05 +0000 (14:50 -0500)]
Drop the extra resources/ subdirectory
This subdirectory gets in the way when integrating the inspector
build more fully with GTK+, and does not really add anything.
Just move everything one level up.
Cosimo Cecchi [Sat, 29 Nov 2014 18:33:02 +0000 (10:33 -0800)]
GtkPlacesSidebar: add support for unmount notifications
Now that we can use GNotification from here, send a notification when
umounting from GtkPlacesSidebar.
https://bugzilla.gnome.org/show_bug.cgi?id=740896
Matthias Clasen [Sat, 29 Nov 2014 23:49:46 +0000 (18:49 -0500)]
widget-factory: Add a treeview separator row
Suggested in https://bugzilla.gnome.org/show_bug.cgi?id=740851
Matthias Clasen [Sat, 29 Nov 2014 22:06:04 +0000 (17:06 -0500)]
HighContrast: in app notification padding
Copied the Adwaita treatment from
e5d34372c4f163e49fb1e0a95f53445f6fa13f2c
https://bugzilla.gnome.org/show_bug.cgi?id=740857
Lapo Calamandrei [Sat, 29 Nov 2014 17:46:06 +0000 (18:46 +0100)]
HighContrast: scale slider fix and cleanup
Set GtkScale margins on the .trough component so the .slider
doesn't inherit them vanishing.
Remove a bunch trailing white spaces in the process.
Lapo Calamandrei [Sat, 29 Nov 2014 17:21:12 +0000 (18:21 +0100)]
Adwaita: set scale with marks trough margin where it belongs to
Matthias Clasen [Sat, 29 Nov 2014 05:26:52 +0000 (00:26 -0500)]
Beautify example Makefiles a bit
Matthias Clasen [Sat, 29 Nov 2014 05:01:49 +0000 (00:01 -0500)]
GtkModelMenuItem: put some space between icon and label
This makes the bloatpad icons menu look slightly less odd.
Matthias Clasen [Sat, 29 Nov 2014 04:55:03 +0000 (23:55 -0500)]
Make include order consistent in example applications
Pointed out in
https://bugzilla.gnome.org/show_bug.cgi?id=740537
Benjamin Otte [Sat, 29 Nov 2014 02:33:47 +0000 (03:33 +0100)]
range: Implement :hover for the whole widget
Benjamin Otte [Sat, 29 Nov 2014 02:27:36 +0000 (03:27 +0100)]
range: Handle redraws inside update_mouse_location
This way, we can do finer-grained invalidation. Plus, we get to not
duplicate all the queue_draw() calls.
Benjamin Otte [Sat, 29 Nov 2014 02:23:58 +0000 (03:23 +0100)]
range: Properly queue draws when doing a drag
The dragged area needs to be marked as :active during the drag.
Benjamin Otte [Sat, 29 Nov 2014 02:20:18 +0000 (03:20 +0100)]
range: Remove unused variable
The variable was TRUE from the beginning and only ever set to TRUE.
Benjamin Otte [Sat, 29 Nov 2014 02:18:50 +0000 (03:18 +0100)]
range: No need to update mouse location when starting a drag
The mouse position doesn't change here. Plus, all callers have just
updated it anyway.
Benjamin Otte [Sat, 29 Nov 2014 01:39:47 +0000 (02:39 +0100)]
range: Only call needed functions from adjustment changes
No need to recalc the whole range when all that changed was the slider.
Benjamin Otte [Sat, 29 Nov 2014 01:17:27 +0000 (02:17 +0100)]
range: Implement gtk_range_calc_stepper_sensitivity() properly
Benjamin Otte [Sat, 29 Nov 2014 00:47:31 +0000 (01:47 +0100)]
range: Implement gtk_range_calc_slider() properly
Benjamin Otte [Sat, 29 Nov 2014 00:39:09 +0000 (01:39 +0100)]
range: Refactor a function
This is in preparation for more places that want to
queue_draw_location().
Benjamin Otte [Sat, 29 Nov 2014 00:23:54 +0000 (01:23 +0100)]
range: Introduce finer-grained invalidation
The invalidation doesn't do anything yet, it just clears up what
actually needs recalculation.
Benjamin Otte [Sat, 29 Nov 2014 00:15:36 +0000 (01:15 +0100)]
range: Changing the min slider size requires a resize
Benjamin Otte [Thu, 27 Nov 2014 23:24:06 +0000 (00:24 +0100)]
range: No need to frce a recalc
A resize will already trigger a recalc, so no need to explicitly trigger
it.
Benjamin Otte [Sat, 29 Nov 2014 00:55:06 +0000 (01:55 +0100)]
widget: Clarify some corner cases
I checked Cairo source code (actually pixman, as Cairo just passes
through) to make sure that the behavior stays identical: negative values
cause an error message from pixman, zero is allowed. Both return an
empty region which gtk_widget_queue_draw_region() would then proceed to
ignore.
Jasper St. Pierre [Fri, 28 Nov 2014 22:03:50 +0000 (14:03 -0800)]
Fix build
Jakub Steiner [Fri, 28 Nov 2014 14:47:58 +0000 (15:47 +0100)]
Provide symbolic variants of app icons
Install symbolic variants of the app icons for gtk3-demo and
gtk3-widget-factory. These are necessary for the HighContrast theme.
https://bugzilla.gnome.org/show_bug.cgi?id=740447
Matthias Clasen [Fri, 28 Nov 2014 17:34:56 +0000 (12:34 -0500)]
docs: Add a missing word
Matthias Clasen [Fri, 28 Nov 2014 17:32:26 +0000 (12:32 -0500)]
Drop an unused variable
Lapo Calamandrei [Fri, 28 Nov 2014 16:03:53 +0000 (17:03 +0100)]
Adwaita: GtkTreeView insensitive state style.
See https://bugzilla.gnome.org/show_bug.cgi?id=740770.
Matthias Clasen [Fri, 28 Nov 2014 03:56:46 +0000 (22:56 -0500)]
inspector: Simplify some code
Yosef Or Boczko [Mon, 24 Nov 2014 17:09:02 +0000 (19:09 +0200)]
GtkStackSwitcher: Make the buttons fill vertically
It fix some cases with different height for the buttons,
like with Hebrew character.
https://bugzilla.gnome.org/show_bug.cgi?id=740642
Matthias Clasen [Thu, 27 Nov 2014 23:22:52 +0000 (18:22 -0500)]
Avoid a critical
gtk_window_get_focus can return NULL, deal with it.
https://bugzilla.gnome.org/show_bug.cgi?id=740812
Matthias Clasen [Thu, 27 Nov 2014 14:42:58 +0000 (09:42 -0500)]
Render shadows for half-tiled windows
Without this, side-by-side half-tiled windows are hard to discern.
https://bugzilla.gnome.org/show_bug.cgi?id=708857
Josef Andersson [Thu, 27 Nov 2014 22:01:44 +0000 (22:01 +0000)]
Updated Swedish translation
Marco Trevisan (Treviño) [Thu, 27 Nov 2014 18:25:55 +0000 (19:25 +0100)]
mir: clear screen, keymap and event source when disposing dpy
Marek Kasik [Thu, 27 Nov 2014 16:04:47 +0000 (17:04 +0100)]
printing: Fix build with CUPS older than 1.6
Define missing functions ippFirstAttribute(), ippNextAttribute()
and macro ippGetCollection(). These were added in CUPS 1.6.
https://bugzilla.gnome.org/show_bug.cgi?id=740358
Leo Wolf [Wed, 26 Nov 2014 20:18:36 +0000 (20:18 +0000)]
printing: Fix origin for scaled, rotated pages
The calls to cairo_translate in
_gtk_print_context_rotate_according_to_orientation,
_gtk_print_context_reverse_according_to_orientation and
_gtk_print_context_translate_into_margin assume an unscaled context.
These functions should therefore be called before scaling the context,
otherwise the origin does not always end up in the top left corner.
https://bugzilla.gnome.org/show_bug.cgi?id=740742
Matthias Clasen [Thu, 27 Nov 2014 03:25:36 +0000 (22:25 -0500)]
x11: Handle obsolete selection requests without crashing
The ICCCM says:
If the specified property is None , the requestor is an obsolete client.
Owners are encouraged to support these clients by using the specified
target atom as the property name to be used for the reply.
Lets do that, instead of crashing.
https://bugzilla.gnome.org/show_bug.cgi?id=740613
Jasper St. Pierre [Thu, 27 Nov 2014 02:10:43 +0000 (18:10 -0800)]
gtkentry: Optimize GtkStyleContext usage
Jasper St. Pierre [Thu, 27 Nov 2014 02:10:36 +0000 (18:10 -0800)]
gtklabel: Optimize GtkStyleContext usage
Jasper St. Pierre [Thu, 27 Nov 2014 02:10:29 +0000 (18:10 -0800)]
gtkstylecontext: Optimize GtkStyleContext usage
Jasper St. Pierre [Thu, 27 Nov 2014 02:10:21 +0000 (18:10 -0800)]
gtktextdisplay: Optimize GtkStyleContext usage
Jasper St. Pierre [Thu, 27 Nov 2014 01:07:56 +0000 (17:07 -0800)]
gdkdisplay-x11: Don't do extra work when simply moving the window
We shouldn't bother recalculating all the visible regions and wiping
away the old updating areas if we're simply dragging the window around.
Matthias Clasen [Wed, 26 Nov 2014 23:38:43 +0000 (18:38 -0500)]
GtkSpinButton: Use the proper state
Use the style contexts current state when querying it.
Carlos Garnacho [Wed, 26 Nov 2014 14:30:52 +0000 (15:30 +0100)]
popover: Send key events only to the focus widget
gtk_window_propagate_key_event() will run unstopped from the focus widget up to the
popover if GDK_EVENT_PROPAGATE was returned along the chain, resulting in infinite
recursion. This could be just triggered by pressing some modifier key on an entry...
Sebastien Lafargue [Wed, 26 Nov 2014 12:53:30 +0000 (13:53 +0100)]
textbtree: Remove unneeded check
Benjamin Otte [Tue, 25 Nov 2014 22:21:48 +0000 (23:21 +0100)]
range: Remove unnecessary argument
It's always the same value passed in, so just use that value directly.
Benjamin Otte [Tue, 25 Nov 2014 22:13:21 +0000 (23:13 +0100)]
range: Query slider position instead of updating it
We're updating it later in the function, there's no need to do it here.
Benjamin Otte [Tue, 25 Nov 2014 22:12:08 +0000 (23:12 +0100)]
gtkrange: Fix copy/paste error
When factoring out a function in
b88584e7bae9bacbda8bd0d9868cbe50eb8e218d I forgot to adapt these values.
Benjamin Otte [Tue, 25 Nov 2014 21:00:11 +0000 (22:00 +0100)]
range: Setting stepper visibility requires a restyle
Benjamin Otte [Tue, 25 Nov 2014 20:57:58 +0000 (21:57 +0100)]
entry: Use correct state when computing icon padding
Emmanuele Bassi [Wed, 19 Nov 2014 14:43:10 +0000 (14:43 +0000)]
Freeze file system model during editing
If a file system event arrives while GtkFileChooserWidget is asking the
user to edit the name of a newly created folder, the file system model
will drop the row with the editable cell, and the user will have to
start from scratch.
This makes creating new directories impossible inside a directory with a
file currently being downloaded, for instance, and it's really unhelpful
to the user because the editable row simply disappears.
We already have a mechanism in place to freeze the file system model, so
we can reuse it between the add_editable() and the remove_editable()
calls.
https://bugzilla.gnome.org/show_bug.cgi?id=729927
Andre Heinecke [Mon, 24 Nov 2014 09:59:32 +0000 (10:59 +0100)]
Remove overzealous validity check for secrets
We directly get the length of the secret from the g_variant
and use it in a following g_strndup which ensures that the
resulting string is terminated.
This fixes reading secrets which were stored by system-config-printer.
https://bugzilla.gnome.org/show_bug.cgi?id=740612
Joanmarie Diggs [Thu, 20 Nov 2014 15:19:52 +0000 (10:19 -0500)]
GtkButtonAccessible: Stop emitting state-change signals for ATK_STATE_ARMED
ATK_STATE_ARMED is now deprecated. There is no replacement.
https://bugzilla.gnome.org/show_bug.cgi?id=740438